import { GetResultListData } from "@/network/result/model";
import { Component, ReactNode } from "react";
import style from "./style.module.css"
interface State{

}

interface Props{
    data:GetResultListData["list"][0]["list"][0]
}

export default class ResultCard extends Component<Props,State>{
 render=(): ReactNode => {
    const {data}=this.props
        return (
            <div className={style.ResultCard}>
                <div className={style.title}>
                    {data.name}
                </div>
                <div className={style.money}>
                    <span>奖金</span> &nbsp; <span style={{color:"#398DF9",fontSize:"4vw"}} >{data.amount}</span>
                </div>
                <div className={style.public_time}>
                    <div style={{color:"#FF9C00"}} > 公示时间 </div>
                    <div className={style.time}>
                        {data.startTimeStr} - {data.endTimeStr}
                    </div>
                </div>
            </div>
        )
    }



}